package com.goodfather.textbook.youdao.pad.util;

public class PathUtil {

    public static boolean isUrl(String path) {
        if (path == null) {
            return false;
        }
        return path.startsWith("http://") || path.startsWith("https://");
    }

    public static boolean isLocalPath(String path) {
        if (path == null) {
            return false;
        }
        return !isUrl(path);
    }
}
